cmake_minimum_required(VERSION 3.19)

project(gdstk_test VERSION 1.0)

# enable_testing()
add_executable(gdstk_test gdstk_test.cpp)


target_include_directories(${target_name} PRIVATE 
    # self
    ${CMAKE_CURRENT_SOURCE_DIR}
    ${QLIB_SOURCE_DIR}
    ${VCPKG_SDK}/include
)

message("${VCPKG_SDK}")
message("${VCPKG_SDK}")
message("${VCPKG_SDK}")
message("${VCPKG_SDK}")
message("${VCPKG_SDK}")
message("${VCPKG_SDK}")
message("${VCPKG_SDK}")
message("${VCPKG_SDK}")
message("${VCPKG_SDK}")
message("${VCPKG_SDK}")
message("${VCPKG_SDK}")

file(GLOB_RECURSE VCPKG_SDK_LIB_FILES ${VCPKG_SDK}/lib/*.lib)
# file(GLOB_RECURSE QLAYOUT_SDK_LIB_FILES ${VCPKG_SDK}/lib/*.lib)

if(CMAKE_BUILD_TYPE STREQUAL "Debug")
    file(GLOB_RECURSE VCPKG_SDK_LIB_FILES ${VCPKG_SDK}/debug/lib/*.lib)
    # file(GLOB_RECURSE QLAYOUT_SDK_LIB_FILES ${VCPKG_SDK}/debug/lib/*.lib)
endif()

target_link_libraries(${target_name} PRIVATE 
    ${VCPKG_SDK_LIB_FILES}
    # $ENV{PYTHONHOME}/libs/python310.lib
)

# find_package(GTest)
# # find_package(gdstk)
# target_include_directories(gdstk_test PRIVATE 
#     # ${gdstk_INCLUDE_DIRS} 
#     ${GTest_INCLUDE_DIRS}
#     )
    
# target_link_libraries(gdstk_test PRIVATE 
#     gtest::gtest 
#     # gdstk::gdstk
# )

